﻿
using System;
using System.ComponentModel.DataAnnotations;
using System.Data;
namespace WebDemo.Models
{
    /// <summary>
    /// GPS消息体
    /// </summary>
    public class GPSMsg
    {
        /// <summary>
        /// 用户标识
        /// </summary>
        [Required]
        [Display(Name = "手机号码")]
        public long mobile { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public float lon { set; get; }

        /// <summary>
        /// 纬度
        /// </summary>
        public float lat { set; get; }

        /// <summary>
        /// 精度
        /// </summary>
        public float radius { get; set; }

        /// <summary>
        /// 方向
        /// </summary>
        public float dir { get; set; }

        /// <summary>
        /// 速度
        /// </summary>
        public float speed { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        public string prov { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        public string city { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        public string dist { get; set; }

        /// <summary>
        /// 详细地址信息
        /// </summary>
        public string addr { get; set; }

        /// <summary>
        /// 定位时间
        /// </summary>
        /// 
        [Required(ErrorMessage = "定位时间必须有值")]
        public string time { get; set; }
    }
}